﻿/* 
 * @summary：业务数据通用组件
 */
var CommonLogic = CommonLogic || {};

/**
 * 获取可操作按钮
 * */
CommonLogic.loadButtonsInfo = function (func) {
    var pathname = window.location.pathname;
    var json = {
        parameters: pathname
    };
    GrdLayUI.ajaxPost({
        url: "/Admin/Home/LoadButtonsInfo",
        modal:false,
        data: json,
        success: function (result) {
            if (result.Code == 1000) {
                $("#gridBtnTool").html(result.Data.sHtml);
                $("#gridTool").html(result.Data.sHtmlXs);
            }
            if (func) {
                func();
            }
        }
    });
};

